package com.bysj.lms.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
@Getter
@Setter
@TableName("lms_em")
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("维修模型")
public class LmsEm implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("维修id")
    private String id;

    @ApiModelProperty("发现人id")
    private String discovererId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("发现时间")
    private LocalDateTime discoverTime;

    @ApiModelProperty("发现地点")
    private String discoverPlace;

    @ApiModelProperty("设备id")
    private String instrumentId;

    @ApiModelProperty("设备类型")
    private String type;

    @ApiModelProperty("设备名")
    private String itemName;

    @ApiModelProperty("损坏细节")
    private String failureDetail;

    @ApiModelProperty("处理人id")
    private String handlerId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("处理开始时间")
    private LocalDateTime handleStartTime;

    @ApiModelProperty("处理过程")
    private String handleProcess;

    @ApiModelProperty("处理结果")
    private String handleResult;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("处理完成时间")
    @TableField(value = "handle_end_time")
    private Float handleTime;

    @ApiModelProperty("处理状态")
    private String status;


}
